<<<<<<< HEAD ||||||| merged common ancestors ======= >>>>>>> 371ff05b569a6264d9798b347807497f5edc6dbd Interactive examples <<<<<<< HEAD ||||||| merged common ancestors ======= >>>>>>> 371ff05b569a6264d9798b347807497f5edc6dbd

Interactive examples

Interactive plots

<<<<<<< HEAD
library(ggplot2)
library(rvg)
library(ggiraph)
library(microbiome)
data("atlas1006")
pseq <- atlas1006
x <- microbiome::transform(atlas1006, "compositional")

mytheme_main <- theme( panel.background = element_blank(), 
  panel.grid.major = element_line(colour = "#dddddd"), 
  axis.ticks = element_line(colour = "#dddddd") )

mytheme_map <- theme(
  panel.background = element_blank(), axis.title.x = element_blank(),
  axis.text = element_blank(), axis.line.x = element_blank(),
  axis.line.y = element_blank(), axis.title.y = element_blank(),
  axis.ticks.x = element_blank(), axis.ticks.y = element_blank() )

df <- as(sample_data(x), "data.frame")
df$Dialister <- get_sample(x, "Dialister")
df$Prevotella <- get_sample(x, "Prevotella melaninogenica et rel.")
df$sample <- row.names(df)

# geom_point_interactive example
gg_point_1 <- ggplot(df, aes(x = Prevotella, y = Dialister, 
        color = age, tooltip = sample) ) + 
    geom_point_interactive(size=3)

# htmlwidget call
ggiraph(code = {print(gg_point_1 + mytheme_main)})
||||||| merged common ancestors
library(ggplot2)
library(rvg)
library(ggiraph)
library(microbiome)
data("atlas1006")
pseq <- atlas1006
x <- microbiome::transform(atlas1006, "compositional")

mytheme_main <- theme( panel.background = element_blank(), 
  panel.grid.major = element_line(colour = "#dddddd"), 
  axis.ticks = element_line(colour = "#dddddd") )

mytheme_map <- theme(
  panel.background = element_blank(), axis.title.x = element_blank(),
  axis.text = element_blank(), axis.line.x = element_blank(),
  axis.line.y = element_blank(), axis.title.y = element_blank(),
  axis.ticks.x = element_blank(), axis.ticks.y = element_blank() )

df <- as(sample_data(x), "data.frame")
df$Dialister <- get_sample(x, "Dialister")
df$Prevotella <- get_sample(x, "Prevotella melaninogenica et rel.")
df$sample <- row.names(df)

# geom_point_interactive example
gg_point_1 <- ggplot(df, aes(x = Prevotella, y = Dialister, 
        color = age, tooltip = sample) ) + 
    geom_point_interactive(size=3)

# htmlwidget call
ggiraph(code = {print(gg_point_1 + mytheme_main)})
=======
>>>>>>> 371ff05b569a6264d9798b347807497f5edc6dbd
<<<<<<< HEAD

Leo Lahti, Sudarshan Shetty et al. 2018-11-19

||||||| merged common ancestors

Leo Lahti, Sudarshan Shetty et al. 2018-07-22

=======

Leo Lahti, Sudarshan Shetty et al. 2018-11-15

>>>>>>> 371ff05b569a6264d9798b347807497f5edc6dbd